<template>
  <div id="app">
    <!--<router-link to="/"></router-link>-->
    <!--<router-link to="/about"></router-link>-->
    <!--<login v-if="!state"></login>-->
    <!--<home v-if="state"></home>-->
    <router-view/>
  </div>
</template>

<script>
import login from './views/Login'
import home from './views/Home'
import store from './store/store'
export default {
  name: 'App',
  store,
  data () {
    return {
      test: ''
    }
  },
  components: {
    login,
    home
  },
  computed: {
    state: function () {
      return store.state.loginState
    }
  }
}
</script>
<style>
</style>
